#!/bin/bash


key=$1;

./gawk4 -F , -v key="$key" 'BEGIN{extension("./libmcrypt.so","dlload");mcrypt_module_open("des","cfb",key);}
{
for(i=1;i<=NF;++i) {
	v=$i;
	if (i==1) v=mdecrypt_generic($i);

	if (i==NF) printf("%s\n",v);
	else printf("%s,",v);
    }
}'

